package com.blockchain.repository;

import com.blockchain.model.Comments;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CommentRepository extends JpaRepository<Comments,Integer> {
    Page<Comments> findByPostIdOrderByCreatedAtDesc(int postId, Pageable pageable);
}
